<?php

namespace app\admin\validate;

use think\Validate;

class AdminUserValidate extends Validate
{
    protected $rule =   [
        'name'  => 'require',
        'password'   => 'require|min:6',

    ];

    protected $message  =   [
        'name.require' => '请输入管理员账号',
        'password.max'     => '请输入密码',
        'password.min'   => '密码长度不能低于6位',

    ];

}